import { ColumnProps } from "@/components/Table/type";
import { SchemaProps } from "@/components/Form/type";
export const columns: ColumnProps[] = [
  { type: "index", label: "#", width: 50 },
  {
    prop: "dictType",
    label: "字典类型",
    search: { el: "input" }
  },
  { prop: "dictName", label: "字典名称", search: { el: "input" } },
  { prop: "remark", label: "备注" },
  { prop: "action", label: "操作", width: 150, fixed: "right" }
];

export const schemas: SchemaProps[] = [
  {
    field: "dictType",
    label: "字典类型",
    required: true,
    disabled: row => {
      return !!row.id;
    }
  },
  {
    field: "dictName",
    label: "字典名称",
    required: true
  },
  { field: "remark", label: "备注" }
];
